package com.ruoyi.project.hissystem.service.impl;

import com.ruoyi.project.hissystem.domain.RegistrationCost;
import com.ruoyi.project.hissystem.mapper.ISysRegistrationCostMapper;
import com.ruoyi.project.hissystem.service.ISysRegistrationCostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ISysRegistrationCostServiceImpl implements ISysRegistrationCostService {
    @Autowired
    private ISysRegistrationCostMapper iSysRegistrationCostMapper;
    @Override
    public List<RegistrationCost> selRegistrationCostList(RegistrationCost registrationCost) {
        List<RegistrationCost> registrationCosts = iSysRegistrationCostMapper.selectRegistrationCostList(registrationCost);

        return registrationCosts;
    }

    @Override
    public int insRegistrationCost(RegistrationCost registrationCost) {
        int i = iSysRegistrationCostMapper.insertRegistrationCost(registrationCost);

        return i;
    }

    @Override
    public RegistrationCost selRegistrationCostOne(int regid) {
        RegistrationCost registrationCost = iSysRegistrationCostMapper.selectRegistrationCostOne(regid);

        return registrationCost;
    }

    @Override
    public int upRegistrationCost(RegistrationCost registrationCost) {
        int i = iSysRegistrationCostMapper.updateSysRegistrationCost(registrationCost);

        return i;
    }

    @Override
    public int delRegistrationCost(int[] regids) {
        int i = iSysRegistrationCostMapper.deleteSysRegistrationCost(regids);
        return i;
    }
}
